<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num=1234234234.33;//==>1,234,234,234.33,
        //2.密码的判断，大写，小写，数字，特殊字符，四种中的三种，6-20
        //1.js中如何定义正则表达式
        var reg01=/abc/ig;
        var str="AbCdabcd";
        var result=str.match(reg01);
        console.log(result);
        console.log(
            reg01.test(str)
        );
        console.log(reg01.exec(str));
        /**
         * 修饰字符串
         * i  ignore
         * g  global
         **/
    </script>
</body>
</html>